#include<bits/stdc++.h>

using namespace std;

void func(int x) {//pass by value
    x = 4;
}

void func2(int &x) {//pass by reference
    x = 4;
}

int main() {

    int x = 3;
    func2(x);
    cout << x;

    return 0;
}